<?php

/**
 * Created by PhpStorm.
 * User: L
 * Date: 2018/12/03
 * Time: 13:41
 */
namespace App\Http\Models;

use Illuminate\Http\Request;

class UserController extends BaseModel
{
	public $create_keys = {$create_keys};
	public function lst(Request $request)
	{
		return self::orderBy('id','desc')->paginate(10);
	}
	
	public function createUser(Request $request)
	{
		$attributes = $request->only($this->create_keys);
        $res = self::create($attributes);
		return $res;
	}
}